package net.osweb.crm.modules.sys.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * SysTab entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_tab", uniqueConstraints = @UniqueConstraint(columnNames = "name"))
public class SysTab implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3692820215992313380L;
	private Integer tabid;
	private String name;
	private Integer presence;
	private Integer tabsequence;
	private String tablabel;
	private Integer modifiedby;
	private Integer modifiedtime;
	private Integer customized;
	private Integer ownedby;
	private String comment;

	// Constructors

	/** default constructor */
	public SysTab() {
	}

	/** minimal constructor */
	public SysTab(Integer tabid, String name, Integer presence, String tablabel) {
		this.tabid = tabid;
		this.name = name;
		this.presence = presence;
		this.tablabel = tablabel;
	}

	/** full constructor */
	public SysTab(Integer tabid, String name, Integer presence,
			Integer tabsequence, String tablabel, Integer modifiedby,
			Integer modifiedtime, Integer customized, Integer ownedby,
			String comment) {
		this.tabid = tabid;
		this.name = name;
		this.presence = presence;
		this.tabsequence = tabsequence;
		this.tablabel = tablabel;
		this.modifiedby = modifiedby;
		this.modifiedtime = modifiedtime;
		this.customized = customized;
		this.ownedby = ownedby;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@Column(name = "tabid", unique = true, nullable = false)
	public Integer getTabid() {
		return this.tabid;
	}

	public void setTabid(Integer tabid) {
		this.tabid = tabid;
	}

	@Column(name = "name", unique = true, nullable = false, length = 25)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "presence", nullable = false)
	public Integer getPresence() {
		return this.presence;
	}

	public void setPresence(Integer presence) {
		this.presence = presence;
	}

	@Column(name = "tabsequence")
	public Integer getTabsequence() {
		return this.tabsequence;
	}

	public void setTabsequence(Integer tabsequence) {
		this.tabsequence = tabsequence;
	}

	@Column(name = "tablabel", nullable = false, length = 25)
	public String getTablabel() {
		return this.tablabel;
	}

	public void setTablabel(String tablabel) {
		this.tablabel = tablabel;
	}

	@Column(name = "modifiedby")
	public Integer getModifiedby() {
		return this.modifiedby;
	}

	public void setModifiedby(Integer modifiedby) {
		this.modifiedby = modifiedby;
	}

	@Column(name = "modifiedtime")
	public Integer getModifiedtime() {
		return this.modifiedtime;
	}

	public void setModifiedtime(Integer modifiedtime) {
		this.modifiedtime = modifiedtime;
	}

	@Column(name = "customized")
	public Integer getCustomized() {
		return this.customized;
	}

	public void setCustomized(Integer customized) {
		this.customized = customized;
	}

	@Column(name = "ownedby")
	public Integer getOwnedby() {
		return this.ownedby;
	}

	public void setOwnedby(Integer ownedby) {
		this.ownedby = ownedby;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}